package com.xbai.springcloud.service.controller;

import com.xbai.springcloud.service.IMessageProvider;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xbai
 * @Date 2021/6/1
 */
@RestController
@RequiredArgsConstructor
public class SendMessageController {

    private final IMessageProvider messageProvider;

    @GetMapping("/sendMessage")
    public String sendMessage() {
        return messageProvider.send();
    }
}
